package com.smart.coupon.template.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "coupon")
public class Coupon {
    @TableId(value = "coupon_id", type = IdType.ASSIGN_ID)
    private Long couponId;

    /**
     * 优惠券模板ID
     */
    @TableField(value = "template_id")
    private Long templateId;

    /**
     * 会员ID
     */
    @TableField(value = "member_id")
    private Long memberId;

    public static final String COL_COUPON_ID = "coupon_id";

    public static final String COL_TEMPLATE_ID = "template_id";

    public static final String COL_MEMBER_ID = "member_id";
}